import request from '@/utils/request'


export const reqfindRoomTypeAll = () => request({ url: '/roomType', method: 'get' });

export const reqroomTypeaddRoomType = (data) => {
    if (data.id) {
        return request({ url: '/roomType/updateRoomType', method: 'put', data });
    } else {
        return request({ url: '/roomType/addRoomType', method: 'post', data });
    }
}

// export const reqdelteRoomTypeById = (id) => request({url:`/roomType/deleteRoomType/${id}`,method:'get'});

export const reqdeleteRoomTypeById = (data)=> request({url:'/roomType/deleteRoomType',method:'delete',data});


export const reqTableYiqingruzhu = (data) => request({url:'/table/yiqingruzhu',method:'post',data});